/*************************************************************************************
 * Description  : led driver modules
 * Version      : 1.0
 * Author       : simon.yuan
 * Date         : 2022-01-30 20:29:16
 * LastEditors  : simon.yuan
 * LastEditTime : 2022-01-30 21:17:15
 * FilePath     : \\stm32f103c8t6_096_i2c_oled\\user\\bsp\\led\\led.c
 * Copyright (C) 2022 QinJin Electronics. All rights reserved.
 *************************************************************************************/
#include "led.h"

void LED_Init(void)
{
    GPIO_InitTypeDef GPIO_InitStructure;

    RCC_APB2PeriphClockCmd(LED1_GPIO_CLK, ENABLE);

    GPIO_InitStructure.GPIO_Pin   = LED1_GPIO_PIN;
    GPIO_InitStructure.GPIO_Mode  = GPIO_Mode_Out_PP;
    GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
    GPIO_Init(LED1_GPIO_PORT, &GPIO_InitStructure);
    GPIO_ResetBits(LED1_GPIO_PORT, LED1_GPIO_PIN);
}

